package com.tarena.lbs.message.web.service.xxljobhandler;

/**
 * 保存xxl-job回调的类的代码
 */
public class TimingMsgGlueJobHandlerString {
    public static  String javaCode=
            "package com.tarena.lbs.message.web.service.xxljobhandler;\n" +
                    "\n" +
                    "import com.tarena.lbs.message.web.service.TimingMsgExecuteService;\n" +
                    "import com.xxl.job.core.handler.IJobHandler;\n" +
                    "import org.springframework.beans.factory.annotation.Autowired;\n" +
                    "\n" +
                    "public class TimingMsgGlueJobHandler extends IJobHandler {\n" +
                    "    @Autowired\n" +
                    "    TimingMsgExecuteService timingMsgExecuteService;\n" +
                    "\n" +
                    "    @Override\n" +
                    "    public void execute() throws Exception {\n" +
                    "        System.out.println(\"TimingMsgGlueJobHandler.execute()\");\n" +
                    "        timingMsgExecuteService.sendMessage(taskId);\n" +
                    "\n" +
                    "    }\n" +
                    "}";
}
